package com.huayue.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huayue.dao.BaseDao;
import com.huayue.dao.DepartmentDao;
import com.huayue.entity.Department;

/**
 * 部门
 */
@Service
public class DepartmentService extends BaseService<Department> {

    @Autowired
    DepartmentDao departmentDao;

    @Override
    public BaseDao<Department> getDao() {
        return departmentDao;
    }

    public List<Map<String, Object>> findAllTopDepartment() {
        return departmentDao.findAllTopDepartment();
    }
}
